/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ideastec.mipyme.model.formadepagocliente;

import com.ideastec.mipyme.model.EntidadPersistible;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;

/**
 *
 * @author Diego Rafael Graf
 */

public class FormaDePagoCliente extends EntidadPersistible{
    
     private String formadepagocliente;
     
     public FormaDePagoCliente(){
     
     }
     
     public FormaDePagoCliente(String formadepagocliente){
         this.formadepagocliente = formadepagocliente;
     }
     
     public String getFormadepagocliente(){
        return this.formadepagocliente;
     }
    
     public void setFormadepagocliente(String formadepagocliente){
        this.formadepagocliente = formadepagocliente;
     }
     
     @Override
     public String toString(){
        return this.formadepagocliente;
     }
     
     @Override
     public boolean equals(Object objeto){
         if(objeto == null || !objeto.getClass().isAssignableFrom(FormaDePagoCliente.class)){
             return false;
         }else{
             FormaDePagoCliente formadepago2 = (FormaDePagoCliente) objeto;
             return new EqualsBuilder().append(formadepago2.toString(), this.toString()).isEquals();
         }
     }
    
     @Override
     public int hashCode(){
         return new HashCodeBuilder().append(this.toString()).append(this.toString()).toHashCode();
     }
    
}
